import request from '@/utils/request'

// 查询样本源类型 列表
export function listSourceType(query) {
  return request({
    url: '/biobank/sourceType/list',
    method: 'get',
    params: query
  })
}

// 查询样本源类型 详细
export function getSourceType(sourceTypeId) {
  return request({
    url: '/biobank/sourceType/' + sourceTypeId,
    method: 'get'
  })
}

// 新增样本源类型
export function addSourceType(data) {
  return request({
    url: '/biobank/sourceType',
    method: 'post',
    data: data
  })
}

// 修改样本源类型
export function updateSourceType(data) {
  return request({
    url: '/biobank/sourceType',
    method: 'put',
    data: data
  })
}

// 删除样本源类型
export function delSourceType(sourceTypeId) {
  return request({
    url: '/biobank/sourceType/' + sourceTypeId,
    method: 'delete'
  })
}
